#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    QMenuBar* menuBar=this->menuBar();//已存在返回,不存在则创建,防止内存泄漏
    this->setMenuBar(menuBar);
}

MainWindow::~MainWindow()
{
    delete ui;
}

